from map import map_c
from entrance import entrance_c
from exit import exit_c

def getMapList(gameObj):
    maps=[]
    #map_c(map name, file name, aspect ratio, game object, player number)
    newMap=map_c("Just Dig!", "justDig.gif", 1, gameObj, 2)
    #only 1 player can use an exit but multi can use entrance
    #probable shouldn't need to pass in the gameObj again
    newMap.addEntrance(entrance_c(300, 60, 0, gameObj.anim["entrance"],1))
    newMap.addEntrance(entrance_c(433, 60, 1, gameObj.anim["entrance"],-1))
    newMap.addExit(exit_c(626, 300, 0, gameObj.anim["exit"]))
    newMap.addExit(exit_c(180, 310, 1, gameObj.anim["exit"]))
    maps+=[newMap]

    newMap=map_c("Just Die!", "justDigWierd.png", 1, gameObj, 2)
    newMap.addEntrance(entrance_c(300, 60, 0, gameObj.anim["entrance"],1))
    newMap.addEntrance(entrance_c(433, 60, 1, gameObj.anim["entrance"],-1))
    newMap.addExit(exit_c(626, 300, 0, gameObj.anim["exit"]))
    newMap.addExit(exit_c(180, 310, 1, gameObj.anim["exit"]))
    maps+=[newMap]

    newMap=map_c("Only Floaters can survive this", "justDig.gif", 2, gameObj, 1)
    newMap.addEntrance(entrance_c(600, 97, 0, gameObj.anim["entrance"],1))
    newMap.addExit(exit_c(726, 264, 0, gameObj.anim["exit"]))
    maps+=[newMap]

    return maps
